package homework38;

public class MinimizeCommand extends Command {//具体命令类
    private WindowHand windowHand;//维持对接收者的引用
    public MinimizeCommand(){
        windowHand = new WindowHand();
    }

    @Override//调用接收者的业务方法
    public void execute() {
        windowHand.minimize();
    }
}
